package com.example;

/**
 * 配置文件
 */
public class Configuration {
    //rabbitmq 消息队列配置
    public final static String HOST_NAME="121.37.94.144";
    public final  static  String QUEUE_NAME="QUEUE_ONE";
    public final  static  String USER_NAME = "lihua";
    public final  static  String PASSWORD = "lihua";
    public final  static String VIRTUAL_HOST = "/";
    public final static int PORT = 5672;

    //商家登录信息 临时使用该配置后面考虑载入配置文件
    public final static String LOGIN_USER_NAME="admin";
    public final static String LOGIN_PASSWORD="admin";

    //服务端有关配置
    public final static String SERVER_HOST="http://127.0.0.1:7001";
    //获取订单详情接口URI
    public static String getOrderInfoUri(String orderId){
        if(orderId == null){
            return null;
        }
        return SERVER_HOST+"/v1/user/getDetailOrder/"+orderId;
    };

    //业务接口有关配置
    public final static String LOGIN_URI = SERVER_HOST+"/v1/client/login";
    //修改订单状态uri
    public static String modifyOrderUri(String orderId,int status){
        return SERVER_HOST+"/v1/client/modifyOrderStatus"+"?orderId="+orderId+"&status="+status;
    }
}
